package com.zhangkunhao.notes.entity;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;

/**
 * 真正的对应数据库表的用户类,属性与数据库字段名一一对应
 * @author 20642
 */
@TableName(name = "tb_user")
public class User1 {
    @TableId(value = "id")
    private Integer id;

    @TableField(value = "user_name")
    private String userName;

    private String password;

    private Integer height;

    public User1() {
    }

    public User1(Integer id, String userName, String password, Integer height) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.height = height;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     *
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     *
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     *
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     *
     * @return height
     */
    public Integer getHeight() {
        return height;
    }

    /**
     * 设置
     *
     * @param height
     */
    public void setHeight(Integer height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return "User1{id = " + id + ", userName = " + userName + ", password = " + password + ", height = " + height + "}";
    }
}
